package com.itheima.domain;

public class User {
    private String id;
    private String name;
    private double balance;     //余额
    private int points;        //积分
    private String password;

    public User() {
    }

    public User(String id, String name, double balance, int points, String password) {
        this.id = id;
        this.name = name;
        this.balance = balance;
        this.points = points;
        this.password = password;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    public int getPoints() {
        return points;
    }

    public void setPoints(int points) {
        this.points = points;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("User{");
        sb.append("id='").append(id).append('\'');
        sb.append(", name='").append(name).append('\'');
        sb.append(", balance=").append(balance);
        sb.append(", points=").append(points);
        sb.append(", password='").append(password).append('\'');
        sb.append('}');
        return sb.toString();
    }
}


